<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	Normal set:<br/>
	<c:set var="userLevel" scope="session" value="Cowboy" />
	${userLevel } <br/>
	Object set:<br/>
	<c:set var="Fido" value="${person.dog}"/>
	${person.name }'s dog's name is ${Fido.name }<br/>
	Set with body:<br/>
	<c:set var="userLevel2" scope="page">
       Sheriff, Bartender, Cowgirl
    </c:set>
	<c:forEach var="level" items="${userLevel2}">
		${level }		
	</c:forEach>
	<br/>
	Set with map:<br/>
	<c:set target="${Fido}" property="name" value="Clover" />
	<c:set target="${map}" property="u1" value="u1_modify" />
	dog name=${Fido.name } <br/>
	<c:forEach var="mapValue" items="${map}">
		${mapValue.key }->${mapValue.value }	<br/>	
	</c:forEach>
	<c:url value="/ch9/index.html"/>
</body>
</html>